package com.zzzzzz.account.service;

import org.springframework.transaction.annotation.Transactional;

import com.zzzzzz.account.model.UserGraph;

public interface UserGraphService {

    @Transactional
    public void followOrUnfollow(String startUserId, String endUserId);

    @Transactional
    public void likeOrUnlike(String startUserId, String endTopicId);

	boolean hasRelationship(UserGraph start, Object end,  String relationshipType);

	boolean hasRelationship(UserGraph start, Object end, Class<UserGraph> relationshipEntityClass, String relationshipType);

    @Transactional
	void cleanDb();
    
}
